package org.springblade.third.enums;

public enum ThirdErrorCode {
    SUCCESS("0", "OK"),
    CHANNEL_NOT_FOUND("THIRD-404", "渠道未找到"),
    PRODUCT_NOT_FOUND("THIRD-405", "产品未找到"),
    CHANNEL_DISABLED("THIRD-406", "渠道已停用"),
    PRODUCT_DISABLED("THIRD-407", "产品已停用"),
    INVALID_REQUEST("THIRD-400", "请求参数不合法"),
    INVOKE_FAILED("THIRD-500", "第三方调用失败"),
    RATE_LIMITED("THIRD-429", "请求被限流"),
    CHANNEL_FORBIDDEN("THIRD-403", "渠道禁止访问");

    private final String code;
    private final String message;

    ThirdErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}


